﻿

using GWB.Core.Common.Entity;
using System.ComponentModel.DataAnnotations;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System;
using GWB.Core.Enum;

namespace GWB.Application
{
   public class DtoValidator
    {
        /// <summary>
        /// 组织的合法性
        /// </summary>
        /// <param name="orgId"></param>
        /// <returns></returns>
        public static ValidationResult Id(string id)
        {
            var vvv = "dsadsadsa";
            Enum.IsDefined(typeof(ErrorCodes), 0);

            return id == "1" ? new ValidationResult("数据错误了") : ValidationResult.Success;
        }
    }
}
